package com.vasthu.api.domain;

import com.vasthu.gui.VstTableItemSelectable;
import com.vasthu.utility.DateTimeUtils;
import java.util.*;

public class User implements VstTableItemSelectable {

    private long userId;
    private String userUserName;
    private String userPassword;
    private String userName;
    private String userAddress;
    private String userCity;
    private String userNIC;
    private String userPhone;
    private String userEmail;
    private long userRoleId;
    private float userSalary;
    private Date userDob;

    public User() {
    }

    public long getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public String getUserCity() {
        return userCity;
    }

    public String getUserUserName() {
        return userUserName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public String getUserNIC() {
        return userNIC;
    }

    public long getUserRoleId() {
        return userRoleId;
    }

    public float getUserSalary() {
        return userSalary;
    }

    public Date getUserDob() {
        return userDob;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public void setUserUserName(String userUserName) {
        this.userUserName = userUserName;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public void setUserNIC(String userNIC) {
        this.userNIC = userNIC;
    }

    public void setUserRoleId(long userRoleId) {
        this.userRoleId = userRoleId;
    }

    public void setUserSalary(float userSalary) {
        this.userSalary = userSalary;
    }

    public void setUserDob(Date userDob) {
        this.userDob = userDob;
    }

    public Object getValue(int col) {
        switch (col) {
            case 0:
                return getUserUserName();
            case 1:
                return getUserName();
            case 2:
                return getUserAddress();
            case 3:
                return getUserCity();
            case 4:
                return getUserPhone();
            case 5:
                return getUserEmail();
            case 6:
                return getUserNIC();
            case 7:
                return getUserDob();
            case 8:
                return getUserRoleId();
            default:
                return new String("");
        }
    }
}